/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package practica2_minimax;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import javax.swing.Icon;
import javax.swing.ImageIcon;

/**
 *
 * @author William
 */
public class panelImg extends javax.swing.JPanel {
    public panelImg()
    {
        this.setSize(500, 500);
        
    }
    @Override
    public void paintComponent(Graphics g){
        Dimension tam = getSize();
        ImageIcon imgFondo = new ImageIcon(getClass().getResource("/practica2_minimax/table.png"));
        g.drawImage(imgFondo.getImage(), 0, 0, tam.width, tam.height, null);
        setOpaque(false);
        super.paintComponent(g);
    }
}
